#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>

#include <iostream>
#include <clocale>
#include "vector_float1.h"
#include "vector_float2.h"
#include "matrix_float.h"
#include "matrix_float2.h"

#ifdef _DEBUG   
#ifndef DBG_NEW     
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )      
#define new DBG_NEW   
#endif
#endif  // _DEBUG

using namespace std;
using namespace frost;

int main(void)
{
	setlocale(LC_ALL,"swedish");

	/*vector_float1 *myVec1 = new vector_float1(4);
	myVec1->print();
	myVec1->set(3.4, 2);
	myVec1->print();
	myVec1->read_from_keyboard();
	myVec1->print();
	delete myVec1;
	myVec1->print();
	cout << endl << endl;*/


	/*vector_float2 *myVec2 = new vector_float2(4);
	myVec2->print();
	myVec2->set(3.4, 2);
	myVec2->print();
	myVec2->read_from_keyboard();
	myVec2->print();
	delete myVec2;
	myVec2->print();*/

	matrix_float *myMat1 = new matrix_float(2, 3);
	myMat1->print();
	myMat1->set(4.4, 1, 2);
	myMat1->print();
	myMat1->read_from_keyboard();
	myMat1->print();
	delete myMat1;
	myMat1->print();


	/*matrix_float2 *myMat2 = new matrix_float2(2, 3);
	myMat2->print();
	myMat2->set(4.4, 1, 2);
	myMat2->print();
	myMat2->read_from_keyboard();
	myMat2->print();
	delete myMat2;
	myMat2->print();*/

	_CrtDumpMemoryLeaks();

	system("PAUSE");

	return 0;
}